package com.hzlh.domain.po;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: PermissionsPo
 * @Description: 权限
 * @author liu_wenfeng
 * @date 2014年9月10日 下午1:13:26
 */
public class PermissionsPo implements Serializable {

	private static final long serialVersionUID = 4301955506659781652L;
	public static final Long DEFAULT_ID = -1L;
	public static final Long DEFAULT_PID = -2L;
	public static final String DEFAULT_ALL_TEXT = "全部";
    public static final Integer ONE_LEVEL = 1;//一级菜单
    public static final Integer TWO_LEVEL = 2;//二级功能
    public static final Integer THREE_LEVEL = 3;//三级操作
    public static final Integer ENABLE_NO = 0;//禁用
    public static final Integer ENABLE_YES = 1;//启用
	
	private Long id;
	private String permName;// 权限名称
	private String permCode;// 权限代码
	private Integer permLevel;// 权限级别
	private String authorizName;//授权名称
	private String url;// 访问路径
	private Long parentId;// 上级编号
	private Integer ranking;// 顺序号
	private Integer enables;// 是否被禁用
	private String iconUrl;// 图标路径
	private String describes;// 描述
	private Date createDate;// 创建时间
	private Date updateDate;// 更新时间
	public List<PermissionsPo> permissions;
	public List<PermissionsPo> children;//Json反序列化对象接收子节点数据
	public boolean checked; 

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getPermName() {
		return permName;
	}

	public void setPermName(String permName) {
		this.permName = permName;
	}

	public String getPermCode() {
		return permCode;
	}

	public void setPermCode(String permCode) {
		this.permCode = permCode;
	}

	public Integer getPermLevel() {
		return permLevel;
	}

	public void setPermLevel(Integer permLevel) {
		this.permLevel = permLevel;
	}

	public String getAuthorizName() {
		return authorizName;
	}

	public void setAuthorizName(String authorizName) {
		this.authorizName = authorizName;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getRanking() {
		return ranking;
	}

	public void setRanking(Integer ranking) {
		this.ranking = ranking;
	}

	public Integer getEnables() {
		return enables;
	}

	public void setEnables(Integer enables) {
		this.enables = enables;
	}

	public String getIconUrl() {
		return iconUrl;
	}

	public void setIconUrl(String iconUrl) {
		this.iconUrl = iconUrl;
	}

	public String getDescribes() {
		return describes;
	}

	public void setDescribes(String describes) {
		this.describes = describes;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public List<PermissionsPo> getChildren() {
		return children;
	}

	public void setChildren(List<PermissionsPo> children) {
		this.children = children;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public List<PermissionsPo> getPermissions() {
		return permissions;
	}

	public void setPermissions(List<PermissionsPo> permissions) {
		this.permissions = permissions;
	}

}